import os
import json
file_path = os.path.abspath(__file__)
dir_path = os.path.dirname(file_path)

with open(os.path.join(dir_path, "JD_chat.json"), "r", encoding="utf-8") as f:
    JD_chat = json.load(f)


cnt = 10
for chat_log in JD_chat:
    print("*"*100)
    print(chat_log["session_id"])
    print(chat_log["user_id"])
    print(chat_log["content"])
    cnt -= 1
    if cnt == 0:
        break